//
//  MRegistService.h
//  Index
//
//  Created by Apple－12 on 15/10/27.
//  Copyright (c) 2015年 Apple－12. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBaseService.h"
#import "MUserModel.h"
//// 登陆
typedef void(^getLoginSystemCompletionHandler)(MUserModel * resultLogin);
//错误返回一个字符串
typedef void(^getLoginErrorHandler)(NSString * error);


// 注册
typedef void(^getProductListCompletionHandler)(NSString * result);
//错误返回一个字符串
typedef void(^getProductErrorHandler)(NSString * error);

@interface MRegistService : MBaseService

-(void)getUserWithUsername:(NSString *)username
                  password:(NSString *)password
                completion:(getProductListCompletionHandler) success
                   failure:(getProductErrorHandler) failure;

-(void)getLoginWithUsername:(NSString *)username
                   password:(NSString *)password
                 completion:(getLoginSystemCompletionHandler)success
                    failure:(getLoginErrorHandler) failure;
@end
